﻿using PIUMania.Entidades;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace PIUMania.WCF.Recorde
{
    [ServiceContract]
    public interface IRecordeService
    {
        [OperationContract]
        [WebInvoke(Method = "POST",
                   RequestFormat = WebMessageFormat.Json,
                   ResponseFormat = WebMessageFormat.Json
                   )]
        RecordResponse gravaRecorde(RecordeRequest jsonRecordeRequest);

        [OperationContract]
        [WebInvoke(Method = "POST",
                   RequestFormat = WebMessageFormat.Json,
                   ResponseFormat = WebMessageFormat.Json
                   )]
        List<RecordeRequest> buscaRecordes(RecordeRequest jsonHistoryRequest);
    }
}
